package com.uyaer.magic.common
{
	import flash.net.SharedObject;

	public class UserData
	{
		private static var m_instance:UserData;
		
		private var shared:SharedObject;
		
		public function UserData()
		{
			shared = SharedObject.getLocal("userdata");
		}
		
		public static function get me():UserData{
			return m_instance ||= new UserData();
		}
		
		public function init():void{
		}
		
		public function read():void{
			var data:Object = shared.data.userdata;
//			if(data){
//				maxStarCount = data.maxStarCount;
//			}else{
//				maxStarCount = 0;
//			}
		}
		
		public function save():void{
			var data:Object = new Object();
//			data.maxStarCount = maxStarCount;
//			shared.data.userdata = data;
		}
	}
}